package com.qd.common.panda.domain.entity.space.publish;

import com.cdqidi.util.page.BaseQuery;
import com.cdqidi.valid.group.DefaultGroup;
import com.cdqidi.valid.group.DeleteGroup;
import com.cdqidi.valid.group.UpdateGroup;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;


/**
 * 车位列表
 *
 * @author sjk
 */
@EqualsAndHashCode(callSuper = true)
@Getter
@Setter
public class ParkSpacePublishListDTO extends BaseQuery {

    /**
     * 主键
     */
    @NotBlank(message = "车位列表ID不能为空", groups = {DeleteGroup.class, UpdateGroup.class})
    @Size(max = 50, message = "车位列表ID长度不能超过{max}位", groups = {DeleteGroup.class, UpdateGroup.class})
    private String spaceListId;
    /**
     * 车位发布ID
     */
    @Size(max = 50, message = "车位发布ID长度不能超过{max}位", groups = DefaultGroup.class)
    private String publishId;
    /**
     * 车位
     */
    @NotBlank(message = "车位不能为空", groups = DefaultGroup.class)
    @Size(max = 50, message = "车位长度不能超过{max}位", groups = DefaultGroup.class)
    private String aid;
    /**
     * 车位号
     */
    @Size(max = 20, message = "车位号长度不能超过{max}位", groups = DefaultGroup.class)
    private String spaceNumber;
    /**
     * 熊猫泊车车位号
     */
    @Size(max = 20, message = "熊猫泊车车位号长度不能超过{max}位", groups = DefaultGroup.class)
    private String sysSpaceNumber;

    @Override
    public void freeData() {
        this.spaceListId = null;
        this.publishId = null;
        this.aid = null;
        this.spaceNumber = null;
        this.sysSpaceNumber = null;
        super.freeData();
    }
}
